package agentspeakeditor.editors.common.AST;

import agentspeakeditor.editors.common.checker.SemanticException;
import agentspeakeditor.editors.common.checker.Visitor;

public abstract class AST {
	public String getSpaces(int level) {
		StringBuffer str = new StringBuffer();
		while( level>0 ) {
			str.append(" ");
			level--;
		}
		return str.toString();
	}
	
	public abstract Object visit(Visitor v, Object arg) throws SemanticException;
	
	public abstract String toString(int level);
}
